<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/inc.jsp" %>
<page:header title="新增页面">
<script lang="JavaScript">
<%-- 返回操作 --%>
function back(){
	window.location.href = "${base}/baseInfo!baseInfoList.do";
}
<%-- 新增操作 --%>
function createBaseInfo(){
	 var saveOp = new AjaxFormOp();
	 saveOp.form=document.createBaseInfoForm;
	 saveOp.opName='保存';
	 saveOp.beforeSubmit=function(a,f,o){
	}
	saveOp.success=function(data){
    	if(data.flag){
    		alert(data.msg);
    		back();
    	}else{
    		alert(data.msg);
    	}
	};
	saveOp.execute();
}
</script>

</page:header>
	<%-- 头部 --%>
<div class="location"><span><d:path/></span></div>
 <form action="${base}/baseInfo!baseInfoCreate.do" name="createBaseInfoForm" id="createBaseInfoForm" method="post">
  <table cellspacing="0" cellpadding="0" align="center" border="0" width="98.2%" class="detailList">
	<tr>
	  <th width="15%" align="right">姓名</th>
	  <td colspan="3">
		 <input type="text" name="baseInfo.name" id="name"   class="defaultText"  notNull="true"/>
	  </td>
	</tr>
	<tr>
	  <th width="15%" align="right">详情</th>
	  <td colspan="3">
		<textarea name="baseInfo.details" id="details"></textarea>
	  </td>
	</tr>
	<tr>
	  <th width="15%" align="right">性别</th>
	  <td colspan="3">
		 <input type="text" name="baseInfo.sex" id="sex"   class="defaultText" />
	  </td>
	</tr>
  </table>
 </form>
<br/>	
<div align="center">
  <input type="button" icon="save" value="保存" onclick="createBaseInfo();"/>
  <input type="button" icon="cancel" value="取消" onclick="back()"/>
</div>
<%-- 底部 --%>
<d:sysHelper/>
<script lang="JavaScript">
	autoStyle(null,{select:false,radio:false});
</script>
<page:footer></page:footer>
